import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import axios from "axios";
import SocketService from "@/utils/socket-service";
// Socket连接
SocketService.Instance.connect();
// this.$socket
Vue.prototype.$socket = SocketService.Instance;
import * as echarts from "echarts";
axios.defaults.baseURL = "http://127.0.0.1:8801/api/";
Vue.prototype.$http = axios;
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;
// 将自动注册所有组件为全局组件
import dataV from '@jiaminghi/data-view'
Vue.use(dataV)
// 引入主题
import "./assets/lib/theme/chalk";
import "./assets/lib/theme/vintage";
import "./assets/lib/theme/westeros";
import "@/assets/css/baes.less";
import "element-ui/lib/theme-chalk/index.css";
// 引入字体文件
import './assets/font/iconfont.css'

Vue.use(ElementUI);
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
